package Vista;

import java.awt.Dimension;
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;

import javax.swing.JOptionPane;
import javax.swing.Timer;


	
public class Mesa extends Applet implements Runnable, MouseListener, MouseMotionListener, ActionListener {


        Thread t;
	static final long serialVersionUID = 0L;
	Image campo; 
        ImageIcon pantalla;
	Graphics aux;
	
	
	public void init(){
		this.addMouseListener(this);
		this.addMouseMotionListener(this);
		campo = getImage(getCodeBase(), "Imagenes/mesa4.png");
                pantalla = new ImageIcon("Imagenes/mesa4.png");
	}
	
	
	public void start(){

	}
	
	public void run(){
		Thread t = Thread.currentThread();
	}
	
	public void update(Graphics g){
		paint(g);
	}
	
	public void paint(Graphics g){
            //g.drawImage( campo, 0, 0, getWidth(), getHeight(), this );
             g.drawImage( campo, 0, 120, getWidth(), getHeight() - 120, this );
            pantalla.paintIcon( this, g, 0, 0 );
            
	}

    @Override
    public void mouseClicked(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mousePressed(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseExited(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseDragged(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseMoved(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}